package com.aceleeyy.sevenstar.dao;

import com.aceleeyy.sevenstar.model.Magazine;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface MagazineMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Magazine record);

    int insertSelective(Magazine record);

    Magazine selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Magazine record);

    int updateByPrimaryKeyWithBLOBs(Magazine record);

    int updateByPrimaryKey(Magazine record);

    List<Magazine> selectAll();

    List<Magazine> selectAllByYear(String year);

    List<Magazine> selectByUserId(Integer userId);

    List<Magazine> selectByParam(String params);

    List<String> selectAllYears();

    List<Magazine> selectVerifyingMagazines();

    int verify(Map<String, Object> params);
}